package dk.itu.mobile.client;
/**
 * 
 */


/**
 * @author niebje
 *
 */
public interface Clientable {
	
	/**
	 * GetAttendantTasks returns all the task belonging to a given attendant
	 * 
	 * The schema of the returned XML is: 
	 * <tasks>
	 * 	<task id='' name='' date='' status=''>
	 * 		<description></description>
	 * 		<attendants></attendants>
	 * 	</task>
	 * </tasks>
	 * 
	 * @param AttendantId Id of the attendant as a String
	 * @return The tasks in XML format.
	 */
	String GetAttendantTasks(String AttendantId);
	
	/**
	 * CreateTask creates a task on the Server given a task in XML format.
	 * 
	 * Schema of input XML:
	 * <task id='' name='' date='' status=''>
	 * 	<description></description>
	 * 	<attendants></attendants></task>
	 * </tasks>
	 *
	 * @param taskXml A task in XML format as a String
	 * @return 
	 */
	String CreateTask(String taskXml);
	
	/**
	 * DeleteTask removes tasks with a given id.
	 * 
	 * @param taskId Task Id as a String
	 * @return
	 */
	String DeleteTask(String taskId);
}
